
/**
 * @Title: CreditTotalDao.java
 * @Package com.py.credit.dao
 * @Description: TODO
 * Copyright: Copyright (c) 2020
 * Company:金电联行(江苏)信息技术有限公司
 * @author Comsys-jdzc
 * @date 2020年6月16日 下午1:47:39
 * @version V1.0
 */

package com.py.credit.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.framework.core.common.Page;

/**
 * @ClassName: CreditTotalDao
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author zzf
 * @date 2020年6月16日 下午1:47:39
 *
 */

public interface CreditTotalDao {

	
	 void addCreditranking(
			@Param(value = "month")String month, 
			@Param(value = "score")Integer score,
			@Param(value = "rank")String rank,
			@Param(value = "deptId")long deptId);

	
	 List<Map<String, Object>> getCreditListForPage(
			@Param(value = "month")String month,
			@Param(value = "score")Integer score,
			@Param(value = "rank")String rank, 
			@Param(value = "page")Page page);

	
	  List<Map<String, Object>> getAnalyseByDeptForPage(
	            @Param(value = "deptName") String deptName,
	            @Param(value = "startTime") String startTime,
	            @Param(value = "endTime") String endTime,
	            @Param(value = "params") Map<String, Object> params,
	            @Param(value = "page") Page page);
	 
	 List<Map<String, Object>> getAnalyseDetailByDeptForPage(
	    		@Param(value = "areaId") String areaId,
	            @Param(value = "deptName") String deptName,
	            @Param(value = "startTime") String startTime,
	            @Param(value = "endTime") String endTime,
	            @Param(value = "deptId") String deptId,
	            @Param(value = "page") Page page);


	
	List<Map<String, String>> getRankInfo();


	
	void editCreditranking(
			 @Param(value = "month")String month,
			 @Param(value = "score")Integer score,
			 @Param(value = "rank")String rank, 
			 @Param(value = "id")String id);


	
	void deleteCreditranking( @Param(value = "id")String id);


	void addMaterial(
			 @Param(value = "batchId")String batchId,
			 @Param(value = "deptId")long deptId,
			 @Param(value = "userName")String userName, 
			 @Param(value = "fileName")String fileName,
			 @Param(value = "path")String path);


	List<Map<String, Object>> getMaterialsListForPage(@Param(value = "zlmc")String zlmc,@Param(value = "page") Page page);


	void updateMaterial(
			@Param(value = "id")String id, 
			@Param(value = "type")String type, 
			@Param(value = "condition")String condition);
}
